{% extends "base.html" %}

{% block titulo %} Presença {% endblock %}

{% block javascript %}
<script type="text/javascript" src="{{MEDIA_URL}}js/Formulario.js"></script>
<script type="text/javascript" src="{{MEDIA_URL}}js/Campos.js"></script>
{% endblock %}

{% block quadro %}
  
  <form enctype="multipart/form-data" action="/cadastro/presenca/alterar_presenca/{{ codigo }}/" method="post">
      <div style="margin: 0 auto;text-align: center;font-size:20px;" >
	  <b> Cadastro de presença </b>
      </div> 
      <table>
      {% if form.errors %}
	  <div class="error">
	      <strong>Corrija os campos</strong>:
	      {% for field in form %}
		  {% if field.errors %}
		      {{ field.label }} - 
		  {% endif %}        
	      {% endfor %}
	  </div>
      {% endif %}
      {{form}}
    </table>
    <input type="submit" value="Salvar"/>- <a href="/cadastro/presenca/apagar_presenca/{{ codigo }}/">Excluir</a>
  </form>
	<a href="/cadastro/aluno">Voltar</a>

{% endblock %}